class CreateDocuments < ActiveRecord::Migration
  def self.up
    create_table :documents do |t|
      t.column :parent_id,          :integer
      t.column :content_type,       :string
      t.column :filename,           :string    
      t.column :thumbnail,          :string 
      t.column :size,               :integer
      t.column :width,              :integer
      t.column :height,             :integer
      t.column :created_on,         :timestamp
      t.column :documentable_id,    :integer  
      t.column :documentable_type,  :string
    end
  end
  
  def self.down
    drop_table :documents
  end
end
